import {defineComponent, h, toRefs} from "@vue/runtime-core" 
import enemyPlane from "../assets/enemy.png"
export default defineComponent({
      props:["x", "y", "width", "height"],
      setup(props, ctx){
            const {x, y, width, height} = toRefs(props);

            return {x, y, width, height}
      },      
      render(ctx){
            return h("Container", [
                        h("Sprite", 
                              {texture: enemyPlane, 
                               x: ctx.x,
                               y: ctx.y,
                               width: ctx.width, 
                               height:ctx.height})
                        ])
      }
})